package com.sourceQ.system.dto.tenant;

import com.sourceQ.common.core.domain.PageParam;
import com.sourceQ.common.core.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author: SourceQ
 * @create: 2024-03-26 10:44
 * @Description:
 */
@Schema(description = "管理后台 - 租户 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class TenantPageReqDTO extends PageParam {

    @Schema(description = "租户名", example = "小香风")
    private String name;

    @Schema(description = "联系人", example = "小小胖")
    private String contactName;

    @Schema(description = "联系手机", example = "15601691300")
    private String contactMobile;

    @Schema(description = "租户状态（0正常 1停用）", example = "1")
    private String status;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @Schema(description = "过期时间")
    private LocalDateTime beginTime;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @Schema(description = "过期时间")
    private LocalDateTime endTime;
}
